// pages/member/member.js
const app = getApp();
Page({
  data: {
    show: false,
    styles: {
      'width': '100%',
      'height': '100rpx',
      'display': 'flex',
      'justifyContent': 'center',
      'alignItems': 'center',
      'borderRadius': '5px',
      'backgroundColor': '#1aad19'
    }
  },
  onLoad() {},
  onShow() {},
  open() {
    this.setData({
      show: !this.data.show
    })
  },
  openModel() {
    this.countdown = this.selectComponent('#popup');
    this.countdown.open();
  },
  // 导航到详情
  navInfo(e) {
    let url = e.currentTarget.dataset.url
    let urlList = {
      checkBox: 'checkBox/checkBox',
      webview: `webview/webview?url=${app.serverPath}`
    }
    wx.navigateTo({
      url: `/page/member/${urlList[url]}`
    })
  }
})